define(function(require, exports, module) {
  var createEl = require('../util/createEl')
  
  function Textarea(el) {
    this.el = el;
    this.props = {
      x: 0,
      y: 0,
      w: 100,
      h: 100,
      rotate: 0
    };
  }

  Textarea.init = function(root, id, opts) {
    var el = createEl('div', opts)
    el.id = '__text__' + id;
    el.className = "text";
    el.setAttribute('title', '__text__' + id);

    root.appendChild(el)

    var textarea = new Textarea(el, opts);
    textarea.id = id;
    return textarea;
  }

  return Textarea
})